package com.common.utils;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * TODO
 *
 * @Description
 * @Author tm
 * @Date 2022-12-08 19:35
 **/
@Configuration
@ConfigurationProperties(prefix = "spring.upload")

public class UploadConfig {
    @Value("${spring.upload.file-path}")
    private static   String filePath;
    @Value("${spring.upload.file-url}")
    private static   String fileUrl;
    public static String getFilePath() {
        return filePath;
    }
    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }
    public  static String getFileUrl() {
        return fileUrl;
    }
    public  void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }
}
